<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>后台管理</title>
<link href="/css/common.css" rel="stylesheet" type="text/css" />
<style>
.wrapContent {height:600px;}
.left {float:left;width:130px;height:100%;border:none;padding:20px 0 0 20px;border-right:1px solid #000;}
.right {margin:0 0 0 151px;}
iframe {width:100%;height:100%;border:none;overflow:hidden;}
</style>
</head>
<body>
<?php include $ROOT_PATH . '/views/include/header.phtml'; ?>
<div class="wrapContent">
	<div class="left">
		<ul>
			<?php if ($userInfo['level'] > 100) {?>
			<li><a href="/admin/order.php?op=add" target="mainFrame">新建订单</a></li>
			<li><a href="/admin/order.php?op=queryPending" target="mainFrame">待发订单</a></li>
			<li><a href="/admin/order.php?op=queryShipped" target="mainFrame">已发订单</a></li>
			<li><a href="/admin/order.php?op=query" target="mainFrame">订单查询</a></li>
			<?php } ?>
			<?php if ($userInfo['level'] > 1000) {?>
			<li><br/></li>
			<li><a href="/admin/order.php?op=queryUnFinished" target="mainFrame">部分发货订单</a></li>
			<li><a href="/admin/inventory.php?op=query" target="mainFrame">库存查询</a></li>
			<li><a href="/admin/customer.php?op=manage" target="mainFrame">客户管理</a></li>
			<li><a href="/admin/machine.php?op=manage" target="mainFrame">机器管理</a></li>
			<li><a href="/admin/express.php?op=manage" target="mainFrame">快递公司管理</a></li>
			<?php } ?>
			<?php if ($userInfo['level'] > 10000) {?>
			<li><br/></li>
			<li><a href="/admin/user.php?op=manage" target="mainFrame">用户管理</a></li>
			<?php } ?>
		</ul>
	</div>
	<div class="right">
		<iframe id="mainFrame" name="mainFrame" frameborder="0" marginheight="0" marginwidth="0" frameborder="0" scrolling="auto" src="/admin/order.php?op=query"></iframe>
	</div>
</div>
</body>
<script src="/js/lib.min.js" type="text/javascript"></script>
<script type="text/javascript">
var height = (document.documentElement.clientHeight || document.body.scrollHeight || window.screen.availHeight);
$('.left').css({'height':height-72+'px'});
$('#mainFrame').attr({onload:function(){
	$(this).css({height:height-72+'px'});
}});
</script>
</html>